import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "./assets/global.css"

Vue.config.productionTip = false
Vue.use(ElementUI ,{size: "small"});

//配置axios全局使用
// axios.defaults.baseURL = 'http://localhost:8081/'
axios.defaults.baseURL = 'http://10.16.110.197:10393/mock/0d30422c-45f6-4eef-8b5b-6c58d1995914/'
axios.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded"
//解决后端存储不了session的问题
axios.defaults.withCredentials = true
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
